#!/bin/sh
#nginx base:nginx-1.9.12-RELEASE
NDK=/home/chenc/workspace/Android/Sdk/ndk-bundle
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/
PLATFORM=$NDK/platforms/android-8/arch-arm/
PREFIX=$PWD/../nginx-android-install
CC=$PREBUILT/bin/arm-linux-androideabi-gcc
CXX=$PREBUILT/bin/arm-linux-androideabi-g++
LDFLAGS=--sysroot=$PLATFORM
CFLAGS=-I$PLATFORM/usr/include
CXXFLAGS=$CFLAGS

./auto/configure --prefix=$PREFIX --with-ld-opt=$LDFLAGS --with-cc-opt=$CFLAGS --without-http_rewrite_module --with-cc=$CC  --user=root --group=root --with-http_dav_module 
